package com.changgou.goods.feign;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Goods;
import com.changgou.goods.pojo.Spu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wz
 * @company 公司
 * @create 2020-03-30 17:09
 */
@FeignClient(name = "goods")
public interface SpuFeign {
    @GetMapping("/spu/{id}")
    public Goods findById(@PathVariable String id);
}
